<?php

namespace Diablo7\HyperfPulsar\Message;

interface MessageInterface
{
    public function getPoolConfig() :array;
    public function getSocketUri() :string;
    public function getQueryParams() :array;
    public function getEndpoint() :string;
    public function getTenant() :string;
    public function getNamespace() :string;
    public function getTopic() :string;
    public function serialize() :string;
    public function unserialize(string $data);
}